package com.test.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

//[sprinboot2拦截指定结尾的url\(\*\.do\) \- CSDN博客](https://blog.csdn.net/jm19920911/article/details/80877314)
@Configuration
public class CustomwebMvcConfigurer implements WebMvcConfigurer {
    public void configurePathMatch(PathMatchConfigurer configurer) {
        configurer.setUseRegisteredSuffixPatternMatch(true);
    }
}